﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WEBDT.Base;
using WEBDT.ViewModel;

namespace WEBDT.Areas.Front.Controllers
{
    public class IndexController : BaseController<SanPham>
    {
        //
        // GET: /Front/Index/

        public ActionResult Index()
        {
            var model = repository.SelectByID<SanPham>(63);
            var ht = new SanPhamModel
            {
                MaSP = model.MaSP,
                TenSP= model.TenSP,
                DonGia= model.DonGia
            };
            return View(ht);
        }

    }
}
